package com.ruoyi.system.domain.project.textbook;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 教材编写教师对象 textbook_teacher
 * 
 * @author ruoyi
 * @date 2025-10-13
 */
public class TextbookTeacher extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 我的字数 */
    @Excel(name = "我的字数")
    private String myWord;

    /** 教材id */
    @Excel(name = "教材id")
    private Long bookId;

    /** 教师id */
    @Excel(name = "教师id")
    private Long userId;

    /** 教师姓名 */
    @Excel(name = "教师姓名")
    private String userName;

    /** 排名 */
    @Excel(name = "排名")
    private Long rank;

    /** 参编者承担角色 */
    @Excel(name = "参编者承担角色")
    private String userType;

    /** 是否第一次参编 */
    @Excel(name = "是否第一次参编")
    private String ifCome;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setMyWord(String myWord) 
    {
        this.myWord = myWord;
    }

    public String getMyWord() 
    {
        return myWord;
    }

    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }


    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    public void setRank(Long rank) 
    {
        this.rank = rank;
    }

    public Long getRank() 
    {
        return rank;
    }

    public void setUserType(String userType) 
    {
        this.userType = userType;
    }

    public String getUserType() 
    {
        return userType;
    }

    public void setIfCome(String ifCome) 
    {
        this.ifCome = ifCome;
    }

    public String getIfCome() 
    {
        return ifCome;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("myWord", getMyWord())
            .append("bookId", getBookId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("rank", getRank())
            .append("userType", getUserType())
            .append("ifCome", getIfCome())
            .toString();
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}
